<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>

		<link rel="stylesheet" href="/manager/style/css/screen.css"
			type="text/css" media="screen, projection" />

		<link rel="stylesheet" type="text/css"
			href="/manager/style/css/superfish.css" media="screen">

		<script type="text/javascript"
			src="/manager/style/js/jquery-1.4.2.min.js">
</script>

		<script type="text/javascript" src="/manager/style/js/superfish.js">
</script>

		<script type="text/javascript">

</script>
	</head>

	<body>
		<div class="right_context container">

			<div class="span-16">
				<fieldset>
					<legend>

						添加订单

					</legend>

					<div id="add_navi_div">
						<form action="/manager/order-updateOrder.action" method="post">
							<table class="cute_form">
								<tr>
									<td>
										<input type="hidden" name="orderId"
											value="<s:property value="order.keyString"/>" />
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">
										收货姓名
									</td>
									<td>
										<s:property value="order.receiverName" />
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">
										宿舍号
									</td>
									<td>
										<s:property value="order.dormNo" />
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">
										商品列表
									</td>
									<td>
										<s:iterator value="goodsList" var="g">

											<s:property value="#g.displayName" />||
									</s:iterator>
									</td>
								</tr>
								<tr>
									<td>
										订单状态
									</td>
									<s:if test="%{order.state == 'success'}">
									<td>
										<input type="radio" value="success" name="orderState" checked />
										成功
									</td>
									</s:if>
									<s:else>
									<td>
										<input type="radio" value="success"" name="orderState" />
										成功
									</td>
									</s:else>
									<s:if test="%{order.state == 'failure'}">
									<td>
										<input type="radio" value="failure" name="orderState" checked />
										失败
									</td>
									</s:if>
									<s:else>
									<td>
										<input type="radio" value="failure"" name="orderState" />
										失败
									</td>
									</s:else>
									<s:if test="%{order.state == 'discard'}">
									<td>
										<input type="radio" value="discard" name="orderState" checked />
										丢弃
									</td>
									</s:if>
									<s:else>
									<td>
										<input type="radio" value="discard" name="orderState" />
										丢弃
									</td>
									</s:else>
								</tr>
								<tr>
									<td></td>
									<td>
										<input type="submit" value="提交" />
									</td>
								</tr>
							</table>
						</form>
					</div>
				</fieldset>
			</div>
		</div>

	</body>
</html>
